#include <iostream>
using namespace std;

int main()
{
	double A, B, C, D, E, F;
	double tmp;

	cout << "A: ";	cin >> A;
	cout << "B: ";	cin >> B;
	cout << "C: ";	cin >> C;
	cout << "D: ";	cin >> D;
	cout << "E: ";	cin >> E;
	cout << "F: ";	cin >> F;
	
	tmp = A * E - B * D;
	cout << "x: " << (B * F - C * E) / tmp << endl;
	cout << "y: " << (C * D - A * F) / tmp << endl;

	return 0;
}
